package com.cqc.other.juc.producerConsumer.demo3;


public class ProducerThread extends Thread {

    private Container container;
    private Integer value;

    public ProducerThread(Container container, Integer value) {
        this.container = container;
        this.value = value;
    }

    @Override
    public void run() {
        container.add(value);
    }
}
